//
//  TDYuDingTryDriveLawCell.m
//  TBRentClient
//
//  Created by tonbright on 2018/6/11.
//  Copyright © 2018年 tonbright. All rights reserved.
//

#import "TDYuDingTryDriveLawCell.h"
#import "NSString+category.h"
@implementation TDYuDingTryDriveLawCell

- (void)awakeFromNib {
    [super awakeFromNib];
    NSString *lawText = @"勾选表示我已同意此次试驾取车时，需携带本人有效身份证和驾驶证；取车时，将冻结10000元作为车辆押金,支持信用卡 查看全部";
    NSMutableAttributedString *tmpLawText = [NSString changeTextColor:lawText OneColor:[UIColor darkGrayColor] TwoColor:[UIColor colorWithHex:0xbf0021] oneFontSize:14 twoFontSize:14 Range:NSMakeRange(lawText.length-4, 4)];
    _lbe_law.attributedText = tmpLawText;    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)btnClick:(UIButton *)sender {
    if (!sender.isSelected) {
        sender.selected = YES;
        if (self.yuDingTryDriveLawCellBlock) {
            self.yuDingTryDriveLawCellBlock();
        }
    }
}

@end
